<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='查房记录-查房',cssPaths='/static/css/services/roundsrecord/roundsDetail.css',jsPaths='/static/js/services/roundsrecord/rounds.js')">
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                    <a href="">护理管理</a>
                    <a href="/roundsRecord">查房记录</a>
                    <a><cite>查房</cite></a>
                </span>
    </div>

    <!--主体内容区-->
    <div class="form-content layui-container">
        <div class="layui-form-item">
            <table class="room-table">
                <thead>
                <tr>
                    <th style="width: 100px;">楼宇名称</th>
                    <th style="width: 100px;">楼层</th>
                    <th style="width: 100px;">房号</th>
                    <th style="width: 100px;">老人姓名</th>
                    <th style="width: 100px;">情况</th>
                    <th style="width: 150px;">异常事项</th>
                    <th style="width: 150px;">处理结果</th>

                </tr>
               <!-- <tr th:each="roundsDdeviants:${roundsDdeviants}">
                    <td th:text="${roundsDdeviants.buildingNo}"></td>
                    <td th:text="${roundsDdeviants.floor}"></td>
                    <td th:text="${roundsDdeviants.roomCode}"></td>
                    <td th:text="${roundsDdeviants.elderlyName}"></td>
                    <td th:if="${roundsDdeviants.roundsStatus} eq '0'" th:text="正常" style="color: #00a0e9"></td>
                    <td th:if="${roundsDdeviants.roundsStatus} eq '1'" th:text="异常" style="color: red"></td>
                    <td th:text="${roundsDdeviants.deviantRemark}"></td>
                    <td th:text="${roundsDdeviants.deviantResult}"></td>
                </tr>-->
                </thead>
                <tbody>
                <tr th:each="entry : ${buildingMap}">
                    <td th:text="${entry.key}" style="text-align: center"></td>
                    <td colspan="6" >
                        <div class="floor-box" th:each="ientry,stat : ${entry.value}" th:style="${stat.last ? 'border-bottom:0' : ''}">
                            <div th:text="${ientry.key}+' 层'" class="floor-item"></div>
                            <div>
                                <div class="room-box" th:each="iientry,stat1 : ${ientry.value}" th:style="${stat1.last ? 'border-bottom:0' : ''}">
                                    <div th:text="${iientry.key}" class="room-item" ></div>
                                    <div class="detail-box">
                                        <div th:each="d,i : ${iientry.value}" class="detail-item" th:style="${i.last ? 'border-bottom:0' : ''}">
                                            <div th:text="${d.elderlyName}" style="width: 100px;border-right:1px solid #bbb;text-align: center"></div>
                                            <div th:text="${d.roundsStatus eq '0' ? '正常' : '异常'}" style="width: 100px;border-right:1px solid #bbb;text-align: center"></div>
                                            <div th:text="${d.deviantRemark}" style="width: 150px;border-right:1px solid #bbb;text-align: center"></div>
                                            <div th:text="${d.deviantResult}" style="width: 150px;text-align: center"></div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="layui-form-item" style="margin-left: 255px;">
            <div class="layui-input-block">
                <a href="/roundsRecord" class="layui-btn layui-btn-primary">返回</a>
            </div>
        </div>
    </div>
</div>
</html>